'use strict'

const Controller = require('egg').Controller

class TestTestController extends Controller {
  async testList() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testList(data)
  }

  async testAdd() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testAdd(data)
  }

  async testUpdate() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testUpdate(data)
  }

  async testDelete() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testDelete(data)
  }

  async testAddBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testAddBatch(data)
  }

  async testDeleteBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.testTest.testDeleteBatch(data)
  }
}

module.exports = TestTestController
